package com.cos.hospital.model.bean;

/**
 * Created by yby on 2018/10/22
 *
 * @apiNote 避免和内部类Bean重名
 */
public class ResultBean<T> {
    /**
     * success : true
     * unAuthorizedRequest : false
     * __abp : true
     */
    private ErrorBean error;
    private boolean success;
    private boolean unAuthorizedRequest;
    private boolean __abp;
    private T result;

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
    public ErrorBean getError() {
        return error;
    }

    public void setError(ErrorBean error) {
        this.error = error;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public boolean isUnAuthorizedRequest() {
        return unAuthorizedRequest;
    }

    public void setUnAuthorizedRequest(boolean unAuthorizedRequest) {
        this.unAuthorizedRequest = unAuthorizedRequest;
    }

    public boolean is__abp() {
        return __abp;
    }

    public void set__abp(boolean __abp) {
        this.__abp = __abp;
    }
}
